<template>
    <div class="h_title rank-head" :style="cStyle">
        <a class="" @click="routerBack"><i class="el-icon-arrow-left"></i></a>
        {{title}}
    </div>
</template>

<script>
export default {
    props: ['title', 'to', 'cStyle'],
    data () {
        return {

        }
    },
    methods: {
      routerBack(){
        this.$router.go(-1);
      }
    }
}
</script>
<style lang="scss" scoped>
.rank-head{
    width: 100%;
    height: 43px;
    position: fixed;
    background: -webkit-linear-gradient(top,rgba(0,0,0,.6),rgba(0,0,0,0));
    top: 45px;
    z-index: 999;
    color: #fff;
    font-size: 18px;
    text-align: center;
    line-height: 43px;
    a{
        display: block;
        float: left;
        position: absolute;
        left: 5px;
        top: 4px;
        color: #fff;
        i{
            font-size: 22px;
        }
    }
}
</style>

